import { createSSRApp } from 'vue';
import App from './App.vue';
import { setupStore } from '@/store';
// 引入全局样式
import '@/assets/style/main.scss';
// 引入windi css
import '@/assets/windi.css';
// iconfont css
import '@/assets/iconfont/iconfont.css';
import '@/assets/iconfont/iconfont.js';
// 引入vue-flow css
import '@vue-flow/core/dist/theme-default.css';
import '@vue-flow/core/dist/style.css';
// 引入全局图片预览
import { ImagePreview } from 'vant';

import Vconsole from 'vconsole';

const vConsole: any = new Vconsole();

export function createApp() {
  const app = createSSRApp(App);
  app.use(ImagePreview);
  setupStore(app);

  return {
    app,
  };
}
